{% extends 'layout.html' %}

{% block main%}
<ol class="breadcrumb">
    <li><a href="/">管理首页</a></li>
    <li><span>用户列表</span></li>>
</ol>

<h3>用户列表</h3>
<table class="table table-hover table-striped table-bordered">
    <tr>
        <td>ID</td>
        <td>用户名</td>
        <td>用户密码</td>
        <td>是否是管理员</td>
    </tr>

    {%for user in users%}
    <tr>
        <th>{{user._id.toString()}}</th>
        <th>{{user.username}}</th>
        <th>{{user.password}}</th>
        <th>
            {%if user.isAdmin%}是{%endif%}
        </th>
    </tr>
    {%endfor%}
</table>
{% include 'page.html' %}
{%endblock%}